package com.catering.service.impl;


import com.catering.domain.Orderr;
import com.catering.mapper.OrderrMapper;
import com.catering.service.OrderrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderrServiceImpl implements OrderrService {
    @Autowired
    private OrderrMapper orderrMapper;


    @Override
    public int addOrder(Orderr order) {
        return orderrMapper.insert(order);
    }

    @Override
    public List<Orderr> selectOrderById(int id) {
        return null;
    }

    @Override
    public List<Orderr> selectOrderByUserId(int userId) {
        return null;
    }

    @Override
    public List<Orderr> selectOrderByTableId(int tableId) {
        return null;
    }

    @Override
    public int deleteOrderById(int id) {
        return 0;
    }
}
